package com.qqt.csr.im.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yang hao
 * @Date: 2024/10/15 16:55
 * @Description: 离线消息拉取
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name="OfflineMessageReqVO",description = "离线消息拉取 数据传输对象")
public class OfflineMessageReqVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "会话id不能为空")
    @Schema(description = "会话id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String conversationId;

    @Schema(description = "拉取消息的IM账号id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "拉取消息的IM账号id不能为空")
    private String accountId;

}
